
-widget do
  %h3=:dashboard.l
  %ul.list-unstyled
    %p
      =fa_icon "check", :text => :view.l
    %li=link_to :my_profile.l, user_path(@user)
    %li=link_to :my_blog.l, user_posts_path(@user)
    %li=link_to :photo_manager.l, user_photo_manager_index_path(@user)
    %li=link_to :my_clippings.l, user_clippings_path(@user)
    %li=link_to :my_friends.l, accepted_user_friendships_path(@user)
    %li=link_to :inbox.l, user_messages_path(@user)
    %p
      =fa_icon "wrench", :text => :manage.l
    %li=link_to :my_profile.l, edit_user_path(@user)
    %li=link_to :my_account.l, edit_account_user_path(@user)
    %li=link_to :my_blog_posts.l, manage_user_posts_path(@user)
    -if current_user.admin?
      %li=link_to :admin_dashboard.l, admin_dashboard_path
-widget do
  %h4
    .small=:stats.l
  %ul.list-unstyled
    - if @user.last_login_at
      %li=:you_last_logged_in_on.l+" #{I18n.l(@user.last_login_at, :format => :published_date)}"
    %li=:member_since.l+" #{I18n.l(@user.created_at, :format => :published_date)}"
    -unless @user.posts.empty?
      %li=:you_have_written_blog_posts.l(:count => @user.posts.count)
    -unless @user.photos.empty?
      %li=:you_have_uploaded_photos.l(:count => @user.photos.count)
    -unless @user.clippings.empty?
      %li=:you_have_added_clippings.l(:count => @user.clippings.count)
    -unless @user.comments.empty?
      %li=:you_have_left_comments.l(:count => @user.posts.count)
    -unless @user.accepted_friendships.empty?
      %li=:you_have_friends.l(:count => @user.accepted_friendships.count)

